<template>
  <div class="www">
    <div class="recommend-list" v-for="(item, key) of list" :key="key">
      <div class="tit">
        <div class="icon"><img src="http://s.qunarzz.com/piao/image/touch/sight/detail.png" alt=""></div>
        <div class="titText">
          {{item.title}}
        </div>
      </div>
      <div class="w2" v-for="(item2, index) of item.content" :key="index">
        <div class="content">
          <div class="content-tit">
            {{item2.title}}
          </div>
          <div class="price">
            <span class="iconfont">&#xe69b;</span>
          </div>
        </div>
        <div class="info-wrap">
          <div class="info" v-for="(item3, index) of item2.info" :key="index">
            <div class="info-tit">
              {{item3.title}}
            </div>
            <div class="info-time">
              <img class="info-time-icon" src="https://img1.qunarzz.com/piao/fusion/1804/f0/39deb48037c83702.png">{{item3.time}}
            </div>
            <div class="info-tip">
              <span class="tip" v-for="(tip, index) of item3.tip" :key="index">{{tip}}</span>
            </div>
            <div class="info-know">
              <span v-for="(know, index) of item3.know" :key="index">{{know}}</span>
              <span class="iconfont">&#xe7eb;</span>
            </div>
            <div class="info-price">
              <span class="fuhao">¥</span><span class="pri f60">{{item3.price}}</span>
              <div class="btn">预定</div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'recommend-list',
  props: {
    list: Array
  },
  activated () {
  },
  methods: {
  }
}
</script>

<style lang="stylus" scoped="scoped">
@import '~stylee/stylus'
  .iconfont
    font-size: 12px;
  .tit
    position relative
    padding: 5px 10px;
    overflow: hidden;
    border-bottom 1px solid #eee
    .icon
      width: 20px;
      height: 20px;
      overflow: hidden;
      float left
      margin: 5px;
      line-height: 28px;
      img
        width: 100%;
    .titText
      line-height: 28px;
      float left
  .content
    position relative
    .price
      position absolute
      top: 50%;
      right: 10px;
      margin-top: -10px;
    .content-tit
      font-size: 16px;
      line-height: 48px;
      padding-left: 10px;
      color #333
  .info
    font-size: 14px;
    padding: 10px;
    color #616161
    position relative
    background-color #f5f5f5
    width: 100%;
    box-sizing border-box
    .info-tit
      line-height 18px
    .info-time
      line-height 18px
      .info-time-icon
        width: 10px;
        height: 10px;
        margin-right: 2px;
    .info-tip
      line-height 18px
      margin: 4px 0;
      .tip
        color #00afc7
        margin-right: 4px;
        border-radius 2px
        border 1px solid #a5e4ec
    .info-know
      font-size: 12px;
      color #616161
    .info-price
      text-align center
      position absolute
      top: 50%;
      margin-top: -27px;
      right: 10px;
      .btn
        padding: 10px 20px;
        border-radius 6px
        background-color #f60
        color #fff
  .fuhao
    font-size: 12px;
  .pri
    font-size: 20px;
  .qi
    font-size: 12px;
</style>
